function tuichu_2() {
    $.ajax({
        url: "remove_user",
        type: "POST",
        dataType: "json",
        contentType: 'application/json;charset=utf-8',
        success: function (data) {
            window.location.href = "Background_index.html";
        }
    });
}

function JudgeLogin_5() {
    $.ajax({
        url: "JudgeLogin_6",
        type: "POST",
        dataType: "json",
        contentType: 'application/json;charset=utf-8',
        success: function (data) {
            if (data.code == 200) {
                var code = "";
                code += "<a href=\"javascript:;\">" + data.sellerNickname + "</a>\n" +
                    "            <dl class=\"layui-nav-child\">\n" +
                    "                <!-- 二级菜单 -->\n" +
                    "                <dd>\n" +
                    "                    <a onclick=\"xadmin.open('个人信息','one_set.html')\">个人信息</a></dd>\n" +
                    "                <dd>\n" +
                    "                    <a>\n" +
                    "                <dd data-type=\"all\" onclick=\"tuichu_2()\">退出</dd>\n" +
                    "                </a></dd>\n" +
                    "            </dl>";
                $("#dataWant").html("");
                $("#dataWant").append(code);
            } else {
                window.location.href = "Background_index.html";
            }
        }
    });
}

$(function () {
    JudgeLogin_5();
})
